<template>
	<u-tabbar :value="value" :list="tabbar_list"  active-color="#FB5904" inactive-color="#bfbfbf"
		:border-top="false"></u-tabbar>
</template>

<script>
import indexIcon from '../../static/Tar_bar_slices/index.png'
import indexIconFill from '../../static/Tar_bar_slices/index-fill.png'
import orderIcon from '../../static/Tar_bar_slices/order.png'
import orderIconFill from '../../static/Tar_bar_slices/order-fill.png'
import goodsIcon from '../../static/Tar_bar_slices/kaidan.png'
import goodsIconFill from '../../static/Tar_bar_slices/kaidan-fill.png'
import userIcon from '../../static/Tar_bar_slices/user.png'
import userIconFill from '../../static/Tar_bar_slices/user-fill.png'
import myIcon from '../../static/Tar_bar_slices/my.png'
import myIconFill from '../../static/Tar_bar_slices/my-fill.png'
export default {
	model: {
		props: 'value'
	},
	props: {
		value: {
			type: Number,
			default: 0
		}
	},
	computed: {
		tabbar_list() {
			return [
				{
					iconPath: indexIcon,
					selectedIconPath: indexIconFill,
					text: '首页',
					customIcon: false,
					pagePath: '/pages/index/index'
				},
				{
					iconPath: userIcon,
					selectedIconPath: userIconFill,
					text: '客户',
					customIcon: false,
					pagePath: '/pages/customer/CustomerList'
				},
				{
					iconPath: goodsIcon,
					selectedIconPath: goodsIconFill,
					text: '开单',
					customIcon: false,
					pagePath: '/pages/order/OrderAddTab'
				},
				{
					iconPath: orderIcon,
					selectedIconPath: orderIconFill,
					text: '订单',
					customIcon: false,
					pagePath: '/pages/order/index'
				},
				{
					iconPath: myIcon,
					selectedIconPath: myIconFill,
					text: '我的',
					customIcon: false,
					pagePath: '/pages/user/index'
				}
			];
		}
	}
};
</script>

<style>
.u-tabbar__content__item__text .u-line-1 {
	font-size: 20rpx !important;
}
</style>
